//
// Created by Administrator on 2018/8/29.
//

#ifndef SELECTIONSORT_SORTTESTHELPER_H
#define SELECTIONSORT_SORTTESTHELPER_H

#include <ctime>
#include <cstdlib>
namespace SortTestHelper{
    /***
     *
     * */
    int * getLengthNRandList(int n, int startL, int endR) {
        int *pArray = new int[n];
        srand(time(NULL));

        for (int i = 0; i< n; i++) {
            pArray[i] = rand() %(endR - startL + 1) + startL;
        }
        return pArray;
    }
    /***
     *
     * */
    int *getLengthNRandList( int n , int max){
        return getLengthNRandList(n, 0, max);
    }
}
#endif //SELECTIONSORT_SORTTESTHELPER_H
